package greate.project.mysql;

import org.apache.camel.builder.RouteBuilder;

/**
 * @author v_zhangshun01
 */
public class ConsumerRouter extends RouteBuilder {

    private String name;

    public ConsumerRouter(String name) {
        this.name = name;
    }

    @Override
    public void configure() throws Exception {
        from("direct:" + name)
                .to("log:ConsumerRouter");
    }

}
